package com.zbec.mdrs.util;
import org.springside.modules.persistence.SearchFilter.Operator;


/**
 * Created by fxl on 2015/12/13.
 */
public class FilterUtils {
    public static Operator getOperator(String op){
        if ("eq".equalsIgnoreCase(op)) {
           return Operator.EQ;
        } else if ("ge".equalsIgnoreCase(op)) {
            return Operator.GTE;
        } else if ("le".equalsIgnoreCase(op)) {
            return Operator.LTE;
        }  else if ("bw".equalsIgnoreCase(op)) {
              return Operator.LIKE;
        } else {
            return Operator.EQ;
        }
    }
}
